﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Framework.Common
{
    public static class Extension
    {
        /// <summary>
        /// 获取以Num个val集合
        /// </summary>
        /// <param name="val">当前值</param>
        /// <param name="num">重复个数</param>
        /// <returns></returns>
        public static string GetNumString(this string val, int num)
        {
            string result = "";
            for (int i = 0; i < num; i++)
            {
                result += val;
            }
            return result;
        }
    }
}
